<template>
	<view class="content">
		<view class="title">
			<view class="left">总积分：{{score}}</view>
			<view class="right" @click="toscore">积分商城</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			
			return{
				score:0
			}
		},
		onLoad(option){
			  this.score=option.score
		},
		methods:{
			toscore(){
				 uni.navigateTo({
				 	url:`/pages/mine/scoredata?score=${this.score}`
				 })
			}
		}
		 
	}
</script>

<style>
	.title{
		display: flex;
		justify-content: space-between;
	}
	.left{
		margin-left: 20rpx;
		font-size: 39rpx;
	}
	.right{
		margin-right: 20rpx;
		color: #ff6d5a;
			font-size: 39rpx;
	}
</style>